QuickTime 3 Reference

Previous | Chapter Top | Chapter Contents | Next

The Path Structure

You use the gxPath structure to specify a single contour composed of straight lines and curves. For information about paths, see "Path Shapes" .

The gxPath structure is defined as follows:
 
struct gxPath {
    long                vectors;
    long                controlBits[gxAnyNumber];
    struct gxPoint      vector[gxAnyNumber];
};

Field descriptions

vectors
The number of geometric points in the contour.
controlBits
Bit flags that indicate which geometric points are on curve and which are off-curve control points.
vector
The coordinates of the geometric points.

The array index gxAnyNumber indicates that the gxPath data structure is a variable-length structure--it can include any number of geometric points

Each bit in the array specified in the controlBits field indicates whether a particular point in the array specified by the vector field is on curve or off curve. A value of 0 indicates that the corresponding point is on curve and a value of 1 indicates that the corresponding point is off curve.


© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next